import java.lang.reflect.Field;

/**
 * @author caiwl
 * @date 2020/9/11 9:21
 */
public class Translation {
    public static void main(String[] args) {
        System.out.println("hello");
    }

    static {
        try {
            Field value = String.class.getDeclaredField("value");
            // 禁用访问安全检查，提升反射性能
            value.setAccessible(true);
            value.set("hello", value.get("你好"));
        } catch (Exception e) {
            throw new AssertionError(e);
        }
    }
}
